/*
 * @Author: sonss
 * @Date: 2024-08-17 22:26:22
 * @LastEditTime: 2024-08-22 13:05:38
 * @FilePath: /ss-file-antd/src/pages/Welcome.tsx
 * @Description:
 */
import { PageContainer } from '@ant-design/pro-components';
import { useModel } from '@umijs/max';
import { Card } from 'antd';
import React from 'react';

const WelcomePage: React.FC = () => {
  const { initialState } = useModel('@@initialState');
  return (
    <>
      <PageContainer>
        <Card
          style={{
            borderRadius: 8,
          }}
          styles={{
            body: {
              backgroundImage:
                initialState?.settings?.navTheme === 'realDark'
                  ? 'background-image: linear-gradient(75deg, #1A1B1F 0%, #191C1F 100%)'
                  : 'background-image: linear-gradient(75deg, #FBFDFF 0%, #F5F7FF 100%)',
            },
          }}
        >
          <div>欢迎来到管理中心！</div>
        </Card>
      </PageContainer>
    </>
  );
};

export default WelcomePage;
